package com.hjd.shop.constant;

/**
 * Created with IntelliJ IDEA.
 *
 * @author 胡江迪
 * Date: 2020/10/18 0018
 * Time: 13:52
 * Description:
 */
public enum  CouponState {
    IS_USED("优惠券已被使用",true),
    NOT_USED("优惠券未使用",false)
    ;
    private String name;
    private Boolean code;

    CouponState(String name, Boolean code) {
        this.name = name;
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getCode() {
        return code;
    }

    public void setCode(Boolean code) {
        this.code = code;
    }
}
